package org.alex.jdk8.callable;

import java.security.PrivilegedAction;
import java.util.concurrent.Callable;

public class TOne {
public static void main(String[] args) throws Exception {
	Callable<String> s1=() -> "done";
	Callable<Boolean> s2=() -> false;
	PrivilegedAction<String> a = () -> "ok";
	System.out.println(a.run());
	System.out.println(s1.call());//"done"
	System.out.println(s2.call());//false
}
}
